/*
 * @Author: BuddyCoder
 * @Date: 2022-03-30 10:19:23
 * @LastEditTime: 2022-03-30 14:27:59
 * @LastEditors: BuddyCoder
 * @Description: 
 * @FilePath: /venom_log/src/plugin/console.rs
 * MIT
 */
use crate::appender::{VenomLogRecord, LogAppender};


 /// 把数据写入控制台 write append into console
pub struct ConsoleAppender {}

impl LogAppender for ConsoleAppender {
    fn do_log(&self, record: &VenomLogRecord) {
        print!("{}", record.formated);
    }
}

